//   Copyright 2012,2013 Vaughn Vernon
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.

package com.saasovation.agilepm.application.product.backlogitem;

import com.saasovation.agilepm.domain.model.product.backlogitem.BacklogItemRepository;

/**
 * 待办事项应用服务
 * @author learn
 */
public class BacklogItemApplicationService {

    /**
     * 待办事项存储库
     */
    private BacklogItemRepository backlogItemRepository;

    /**
     * 由存储库构造待办事项应用服务
     * @param aBacklogItemRepository        待办事项存储库
     */
    public BacklogItemApplicationService(
            BacklogItemRepository aBacklogItemRepository) {
        super();

        this.backlogItemRepository = aBacklogItemRepository;
    }

    // TODO: APIs for student assignment用于学生作业的API

    /**
     * 待办事项占位符服务
     */
    public void backlogItemPlaceholderService() {
        this.backlogItemRepository();
    }

    /**
     * 获取待办事项存储库
     * @return          返回待办事项存储库
     */
    private BacklogItemRepository backlogItemRepository() {
        return this.backlogItemRepository;
    }
}
